//
//  Utils.h
//  XMenSwift
//
//  Created by Jason on 2022/3/22.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/** ->View 圆角和加边框 */
#define ViewBorderRadius(View, Radius, Width, Color) \
                                                     \
    [View.layer setCornerRadius:(Radius)];           \
    [View.layer setMasksToBounds:YES];               \
    [View.layer setBorderWidth:(Width)];             \
    [View.layer setBorderColor:[Color CGColor]]

/** ->View 圆角 */
#define ViewRadius(View, Radius)           \
                                           \
    [View.layer setCornerRadius:(Radius)]; \
    [View.layer setMasksToBounds:YES]

@interface Utils : NSObject

//字典转Json
+ (NSString *)dictionaryToJsonString:(NSDictionary *)dict;

//Json转字典
+ (NSDictionary *)jsonStringConvertDictionary:(NSString *)jsonString;

+ (NSString *)getNULLString:(id)obj;

@end

NS_ASSUME_NONNULL_END
